package com.wx.app.mylib.utils.net;

import com.wx.app.mylib.app.Globals;
import com.zhy.http.okhttp.OkHttpUtils;
import com.zhy.http.okhttp.callback.StringCallback;

import okhttp3.Call;

/**
 * Created by Administrator on 2016/6/14.
 */
public class RequestTask {
    //远程接口调用地址
    public final static String REMOTEURL = Globals.domain + "/appinvoke";

    public void invoke(String url) {
        OkHttpUtils.post()
                .url(REMOTEURL + url)
                .build()
                .execute(new StringCallback() {
                    @Override
                    public void onError(Call call, Exception e) {

                    }

                    @Override
                    public void onResponse(String response) {

                    }
                });

    }


}
